package com.ruoyi.business.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 通道硬件实时值记录表对象 bus_channel_realtime_value
 * 
 * @author asher
 * @date 2021-11-02
 */
public class BusChannelRealtimeValue extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录id */
    private Long recordId;

    /** 通道id */
    @Excel(name = "通道id")
    private Long channelId;

    /** 通道名称 */
    @Excel(name = "通道名称")
    private String name;

    /** 当前值 */
    @Excel(name = "当前值")
    private Long actualValue;

    /** 修正值 */
    @Excel(name = "修正值")
    private Long correctedValue;

    /** 修正公式 */
    @Excel(name = "修正公式")
    private String formula;

    /** 硬件id */
    @Excel(name = "硬件id")
    private Long hardwareId;

    public void setRecordId(Long recordId) 
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }
    public void setChannelId(Long channelId) 
    {
        this.channelId = channelId;
    }

    public Long getChannelId() 
    {
        return channelId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setActualValue(Long actualValue) 
    {
        this.actualValue = actualValue;
    }

    public Long getActualValue() 
    {
        return actualValue;
    }
    public void setCorrectedValue(Long correctedValue) 
    {
        this.correctedValue = correctedValue;
    }

    public Long getCorrectedValue() 
    {
        return correctedValue;
    }
    public void setFormula(String formula) 
    {
        this.formula = formula;
    }

    public String getFormula() 
    {
        return formula;
    }
    public void setHardwareId(Long hardwareId) 
    {
        this.hardwareId = hardwareId;
    }

    public Long getHardwareId() 
    {
        return hardwareId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("recordId", getRecordId())
            .append("channelId", getChannelId())
            .append("name", getName())
            .append("actualValue", getActualValue())
            .append("correctedValue", getCorrectedValue())
            .append("formula", getFormula())
            .append("hardwareId", getHardwareId())
            .toString();
    }
}
